import request from '@/utils/request'

// 查询假期列表
export function holidayList(query) {
  return request({
    url: '/config/holiday/list',
    method: 'get',
    params: query
  })
}

// 添加假期
export function holidayAdd(data) {
  return request({
    url: '/config/holiday/add',
    method: 'POST',
    data: data
  })
}

// 编辑假期
export function holidayEdit(data) {
  return request({
    url: '/config/holiday/edit',
    method: 'POST',
    data: data
  })
}

// 删除假期列表
export function holidayDelBatch(data) {
  return request({
    url: '/config/holiday/delBatch',
    method: 'POST',
    data: data
  })
}
